#ifndef REMOTECONTROLSERVICE_H
#define REMOTECONTROLSERVICE_H

#include <QCoreApplication>
#include <QtService>
#include <QSharedPointer>
#include <QTimer>

class JKProcessMonitor;

class RemoteControlService : public QtService<QCoreApplication>
{
public:
    RemoteControlService(int argc, char **argv);

protected:
    virtual void start() override;
    virtual void stop() override;
    virtual void pause() override;
    virtual void resume() override;
    virtual void processCommand(int code) override;

protected slots:
    void timeout();

private:
    QSharedPointer<JKProcessMonitor> m_pProcess;

private:
    void killAdbServer();

};

#endif // REMOTECONTROLSERVICE_H
